class tongxunlubean {
  List<Records> records;
  int total;
  int size;
  int current;
  List<String> orders;
  bool searchCount;
  int pages;

  tongxunlubean(
      {this.records,
        this.total,
        this.size,
        this.current,
        this.orders,
        this.searchCount,
        this.pages});

  tongxunlubean.fromJson(Map<String, dynamic> json) {
    if (json['records'] != null) {
      records = new List<Records>();
      json['records'].forEach((v) {
        records.add(new Records.fromJson(v));
      });
    }
    total = json['total'];
    size = json['size'];
    current = json['current'];
    if (json['orders'] != null) {
      orders = new List<String>();
      json['orders'].forEach((v) {
        orders.add(v);
      });
    }
    searchCount = json['searchCount'];
    pages = json['pages'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.records != null) {
      data['records'] = this.records.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    data['size'] = this.size;
    data['current'] = this.current;
    // if (this.orders != String) {
    //   data['orders'] = this.orders.map((v) => v.toJson()).toList();
    // }
    data['searchCount'] = this.searchCount;
    data['pages'] = this.pages;
    return data;
  }
}

class Records {
  String birthday;
  String salt;
  String sexDictText;
  int sex;
  String activitiSync;
  String updateTime;
  String avatar;
  String statusDictText;
  String delFlag;
  String realname;
  String password;
  String createBy;
  String phone;
  String createTime;
  String updateBy;
  String orgCode;
  String id;
  String email;
  String hotuserId;
  int amHotuser;
  String username;
  int status;

  Records(
      {this.birthday,
        this.salt,
        this.sexDictText,
        this.sex,
        this.activitiSync,
        this.updateTime,
        this.avatar,
        this.statusDictText,
        this.delFlag,
        this.realname,
        this.password,
        this.createBy,
        this.phone,
        this.createTime,
        this.updateBy,
        this.orgCode,
        this.id,
        this.email,
        this.hotuserId,
        this.amHotuser,
        this.username,
        this.status});

  Records.fromJson(Map<String, dynamic> json) {
    birthday = json['birthday'];
    salt = json['salt'];
    sexDictText = json['sex_dictText'];
    sex = json['sex'];
    activitiSync = json['activitiSync'];
    updateTime = json['updateTime'];
    avatar = json['avatar'];


    statusDictText = json['status_dictText'];
    delFlag = json['delFlag'];
    if(null ==json['realname'] ){
      realname="";
    }else{
      realname = json['realname'];
    }

    password = json['password'];
    createBy = json['createBy'];

    if(null ==json['phone'] ){
      phone="";
    }else{
      phone = json['phone'];
    }
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    orgCode = json['orgCode'];
    id = json['id'];
    email = json['email'];
    hotuserId = json['hotuserId'];
    amHotuser = json['amHotuser'];
    username = json['username'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['birthday'] = this.birthday;
    data['salt'] = this.salt;
    data['sex_dictText'] = this.sexDictText;
    data['sex'] = this.sex;
    data['activitiSync'] = this.activitiSync;
    data['updateTime'] = this.updateTime;
    data['avatar'] = this.avatar;
    data['status_dictText'] = this.statusDictText;
    data['delFlag'] = this.delFlag;
    data['realname'] = this.realname;
    data['password'] = this.password;
    data['createBy'] = this.createBy;
    data['phone'] = this.phone;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['orgCode'] = this.orgCode;
    data['id'] = this.id;
    data['email'] = this.email;
    data['hotuserId'] = this.hotuserId;
    data['amHotuser'] = this.amHotuser;
    data['username'] = this.username;
    data['status'] = this.status;
    return data;
  }
}
